package com.lagou.service;

import com.lagou.mapper.ESProductMapper;
import com.lagou.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImp implements ProductService{
    @Autowired
    private ESProductMapper mapper;


    @Override
    public Product getById(Integer id) {
        return mapper.selectById(id);
    }
}
